package com.financing.platform.dao.impl;



import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.platform.dao.IProjectSupplierFlowDao;
import com.financing.platform.dto.ProjectSupplierFlowDTO;
import com.financing.platform.util.SqlName;
@Repository("projectSupplierFlowDaoImpl")
public  class ProjectSupplierFlowDaoImpl extends BaseDaoImpl 
		implements IProjectSupplierFlowDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<ProjectSupplierFlowDTO> getProjectSupplierFlowList(
			ProjectSupplierFlowDTO projectSupplierFlowDTO) throws SQLException {
		return this.sqlMapClient.queryForList(SqlName.queryProjectSupplierFlowList,projectSupplierFlowDTO);
	}

	@Override
	public int addProjectSupplierFlow(
			ProjectSupplierFlowDTO projectSupplierFlowDTO) throws SQLException {
		return (Integer) this.sqlMapClient.insert(SqlName.insertProjectSupplierFlow, projectSupplierFlowDTO);
	}

	@Override
	public int queryProjectSupplierFlowCount(
			ProjectSupplierFlowDTO projectSupplierFlowDTO) throws SQLException {
		return (Integer) this.sqlMapClient.queryForObject(SqlName.queryProjectSupplierFlowCount,projectSupplierFlowDTO);
	} 

}
